﻿
function FunctionLib(){
	var funMap = new Map();
	funMap.put("sum",(new Sum()));
	funMap.put("year",(new Year()));
	funMap.put("if",(new If()));
	
	this.funMap = funMap;
} 

FunctionLib.prototype = {
	isFunction:function(funName){
		var fun = this.funMap.get(funName);
		if(fun!=null){
			return true;
		}
		return false;
	}
}
